#!/usr/bin/env python3 
# -*- coding: UTF-8 -*-

'''
读取配置文件
by lina
'''
import configparser

class Config:
	
	def __init__(self):
		self.file='config/config.ini' #配置文件目录

	"""
	获取配置
	by lina
	"""
	def get_config(self,section,name):
		conf = configparser.ConfigParser()
		conf.read(self.file)      
		name = conf.get(section,name) 
		return name


